package com.mz.ozy.adapter;


import com.mz.ozy.activity.me.LogisticsFragment;
import com.mz.ozy.activity.me.MyOrderFragment;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentStatePagerAdapter;
import androidx.viewpager.widget.PagerAdapter;

/**
 * Created by Administrator on 2018/4/17.
 * 我的订单
 */

public class LogisticsFragmentAdapter extends FragmentStatePagerAdapter {


    public LogisticsFragmentAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return LogisticsFragment.newInstance("",LogisticsFragment.TYPE_ALL,position);
    }

    @Override
    public int getItemPosition(Object object) {
        return PagerAdapter.POSITION_NONE;
    }

    @Override
    public int getCount() {
        return 5;
    }

}
